package com.example.demo.dto;

import lombok.Data;

@Data
public class PageLimit {
    private int page;
    private int start;
    private int items;
    public PageLimit(int page,int items){
        this.setPage(page-1);
        this.setItems(items);
        this.setStart(this.getPage()*this.items);
    }
}
